<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>
<?php use \yii\helpers\Html;?>
<!-- 树形菜单选择 -->
<link rel="stylesheet" type="text/css" href="/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/easyui/themes/icon.css">
<script type="text/javascript" src="/easyui/jquery.easyui.min.js"></script>
<script src="/laydate/laydate.js"></script>
<div class="span10" id="datacontent">
    <ul class="breadcrumb">
        <li><a href="/content/ads-banner/index">预留电话</a> <span class="divider">/</span></li>
        <li class="active">查看</li>
    </ul>
    <!--    <ul class="nav">-->
    <!--        <li class="dropdown pull-right">-->
    <!--            <a class="dropdown-toggle" href="/content/resource/add">添加</a>-->
    <!--        </li>-->
    <!--    </ul>-->
    <form action="<?php echo baseUrl?>/content/resource/index" method="get" class="form-horizontal">
        <table class="table">
            <tr>
                <td>
                    ID：&nbsp;&nbsp;
                    <input type="text" name="id" value="<?php echo isset($_GET['id'])?$_GET['id']:'' ?>">
                </td>
            </tr>
        </table>
    </form>
    <form action="/content/content/sort" method="post">
        <table class="table table-hover add_defined">
            <thead>
            <tr>
                <th width="80">ID</th>
                <th>电话</th>
                <th>微信号</th>
                <th>类型</th>
                <th>时间</th>
                <th>位置</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach($content as $v):?>
                <tr>
                    <td><?php echo $v['id'];?></td>
                    <td><?php echo $v['phone'];?></td>
                    <td><?php echo $v['wechat'];?></td>
                    <td><?php echo $v['type'] == 1 ? 'WAP' : ($v['type'] == 2?'PC':'APP');?></td>
                    <td><?php echo date('Y-m-d H:i:s', $v['createTime']);?></td>
                    <td><?php echo $v['remark']?></td>
                    <td class="notSLH" style="width: 247px;">
                        <div>
                            <?php if($v['status'] == 1):?>
                                <a class="btn btn-success" disabled="">已处理</a>
                            <?php else:?>
                                <a class="btn btn-success" href="/content/reserve-phone/handle-phone?id=<?= Html::encode($v['id'])?>">未处理</a>
                            <?php endif;?>
                        </div>
                    </td>
                </tr>
            <?php endforeach;?>
            </tbody>
        </table>
        <input type="hidden" name="url" value="">
    </form>
    <div class="pagination pagination-right">
        <input type="hidden" id="jumpUrl" value="<?php echo Yii::$app->request->getUrl();?>" />
        <?php use yii\widgets\LinkPager;?>
        <?php echo LinkPager::widget([
            'pagination' => $page,
        ])?>
    </div>
    <script>
    </script>

